/*
package NiuKe;

import java.util.Scanner;


public class HJ1 {
    public static int spList(String s){
        String[] strings = s.split(" ");
        return strings[strings.length-1].length();

    }

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while(scanner.hasNext()){
            String s = scanner.nextLine();
            System.out.println(spList(s));
        }
        System.out.println("hello");
    }
}
*/
